package com.emellend.api.v4;

import com.emellend.api.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class SendResult extends Activity implements OnClickListener {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.send_result);
		init();
	}

	private void init() {
		this.findViewById(R.id.corky).setOnClickListener(this);
		this.findViewById(R.id.violet).setOnClickListener(this);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.corky:
			setResult(RESULT_OK, new Intent("Corky!"));
			finish();
			break;

		case R.id.violet:
			setResult(RESULT_OK, new Intent("Violet!"));
			finish();
			break;
		}
	}
}
